<!-- model的公共组件：增删改查; 支持的props可以参考 public/mixins/modelMixin.js -->
<template>
  <model
      :title="title"
      :type="type"
      :prefix="prefix"
      :computedConfig="computedConfig"
  />
</template>

<script>
import Model from "@/pages/entityModelDesign/parts/model";
export default {
  components: {Model},
  data() {
    return {
      type:'',
      prefix: 'consume',
    }
  },
  computed: {
    title() {
      return {
        'zh-CN': `消费自定义模型定义`,
        'en-US': `consume selfDefined model definition`
      }[this.G_Locale]
    },
    computedConfig() {
      return {
        // columns: [
        //   {
        //     key: 'type',
        //     title: this.$t(`model.type`),
        //     minWidth: 100,
        //     align: 'center',
        //     show: true,
        //     // render: (h, params) => {
        //     //   return h('div', this.type ? params.row.type : params.row.type.replace(`${this.prefix}_`, ''))
        //     // }
        //   }
        // ]
      }
    }
  },
}
</script>